#include "NfcApiBridgeServer.h"
#include "NfcEngine.h"

CNfcApiBridgeServer::~CNfcApiBridgeServer()
    {
    delete iEngine;
    }

void CNfcApiBridgeServer::ConstructL()
    {
    CServerBase::ConstructL();
    
    iEngine = CNfcEngine::NewL();
    }

void CNfcApiBridgeSession::PopulateRequestArrayL(scatu::RServerRequestArray & aArray)
    {
    CNfcEngine & engine = Server().Engine();
    
    aArray.RegisterRequestL(iApi.iReadTagAsync, engine, &CNfcEngine::ReadTagAsyncL);
    aArray.RegisterRequestL(iApi.iSetForeground, engine, &CNfcEngine::SetForegroundL);
    aArray.RegisterRequestL(iApi.iSendMessage, engine, &CNfcEngine::SendMessageL);
    aArray.RegisterRequestL(iApi.iSetResponse, engine, &CNfcEngine::SetResponseL);
    aArray.RegisterRequestL(iApi.iTransactionLog, engine, &CNfcEngine::TransactionLogL);
    }
